from selenium import webdriver
from selenium.webdriver.common.by import By

browser = webdriver.Chrome()
browser.get('https://www.baidu.com')
input_first = browser.find_element(By.ID, 'kw')
input_second = browser.find_element(By.CSS_SELECTOR, '#kw')
input_third = browser.find_element(By.XPATH, '//*[@id="kw"]')
print(input_first, input_second, input_third)
browser.close()
